﻿using AutoMapper;
using Modules;
using PmSoft;

namespace ManagementApi.Models;

public class Log4netInfoDto : Log4netInfo
{
    #region 扩展属性
   //这里自行增加扩展属性
    #endregion
}

public static partial class Log4netInfoExceptions {
    public static Log4netInfoDto AsDto(this Log4netInfo entity) {
        Log4netInfoDto dto = new();
        var mapper = ServiceAccessor.GetService<IMapper>();
        mapper.Map(entity, dto);
        #region 扩展属性赋值
        //这里自行给扩展属性赋值
        #endregion
        return dto;
    }
}
